import request from '@/utils/request'

/**
 * 获取 提现 列表
 * @param userName 创客账号
 * @param status 提现状态
 * @param type 创客类型
 * @param startTime 开始时间
 * @param endTime 结束时间
 */
export function getCashListApi(params) {
  return request({
    url: `/operation/withdraw/history/management/list`,
    method: 'get',
    params
  })
}

/**
 * 审核接口
 * @param id 审核账单 id
 * @param status 提现状态
 * @param remark 审核备注
 */
export function postAuditApi(data) {
  return request({
    url: `/operation/withdraw/history/management/check`,
    method: 'post',
    data
  })
}

/**
 * 提现详情接口
 * @param userWithdrawId 审核账单 id
 */
export function getCashDetailsApi(params) {
  return request({
    url: `/operation/withdraw/history/management/info`,
    method: 'get',
    params
  })
}

/**
 * 提现详情导出接口
 * @param userWithdrawId 审核账单 id
 */
export function postCashDetailsExportApi(data) {
  return request({
    url: `/operation/withdraw/history/management/info/export`,
    method: 'post',
    data
  })
}
